package avicit.bdp.oss.dto;

import avicit.bdp.oss.utils.stats.Capacity;

/**
 * @金航数码科技有限责任公司
 * @作者：developer
 * @邮箱：developer@avic-digital.com
 * @创建时间： 2020-11-12
 * @类说明：SysStatsInfoQureyDto
 * @修改记录：
 * @注意事项：仅供Rest接口使用
 * @主要功能：对象存储系统统计信息，包括bucket数量、总容量、总对象数量
 */
public class SysStatsQureyDto {
    /**
     * 系统中bucket总数量
     * 注意：此处使用long类型，满足系统要求
     * 最小值：Long.MIN_VALUE=-9223372036854775808 （-2的63次方）
     * 最大值：Long.MAX_VALUE=9223372036854775807 （2的63次方-1）
     */
    private long bucketNum;

    /**
     * 总容量，携带单位B/KB/GB/MB/GB/TB
     */
    private Capacity totalCapacity;

    /**
     * 总流量
     */
    private long objectNum;

    /**
     * 原始值，单位：Byte
     */
    private long originCapacity;

    public SysStatsQureyDto(long bucketNum, Capacity totalCapacity, long objectNum, long originCapacity) {
        this.bucketNum = bucketNum;
        this.totalCapacity = totalCapacity;
        this.objectNum = objectNum;
        this.originCapacity = originCapacity;
    }

    public long getBucketNum() {
        return bucketNum;
    }

    public Capacity getTotalCapacity() {
        return totalCapacity;
    }

    public long getObjectNum() {
        return objectNum;
    }

    public long getOriginCapacity() {
        return originCapacity;
    }

    public void setBucketNum(long bucketNum) {
        this.bucketNum = bucketNum;
    }

    public void setTotalCapacity(Capacity totalCapacity) {
        this.totalCapacity = totalCapacity;
    }

    public void setObjectNum(long objectNum) {
        this.objectNum = objectNum;
    }

    public void setOriginCapacity(long originCapacity) {
        this.originCapacity = originCapacity;
    }
}
